package com.team.RunsFast_Api.controller;

import com.team.RunsFast_Api.service.intf.ScoreLogService;
import com.team.runsfast.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/scorelog/")
@CrossOrigin
@Api(tags = "积分日志")
public class ScorelogController {

    @Autowired
    private ScoreLogService service;

    /**查询*/
    @GetMapping("queryAll.do")
    public R queryAll(){
        return service.queryAll();
    }
}